package cn.pegasus.teamwork.pegasus.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.pegasus.teamwork.pegasus.entity.BussUserFunddetails;
import cn.pegasus.teamwork.pegasus.mapper.BussUserFunddetailsMapper;
import cn.pegasus.teamwork.pegasus.service.BussUserFunddetailsService;
import cn.iyizhan.teamwork.base.service.impl.BaseServiceImpl;
import cn.iyizhan.teamwork.base.util.PageHelper;
import cn.iyizhan.teamwork.base.util.PageObject;

/**
 * @author ryan.bian
 * @version 
 */
@Service("bussUserFunddetailsService")
public class BussUserFunddetailsServiceImpl extends BaseServiceImpl<BussUserFunddetails, BussUserFunddetailsMapper> implements BussUserFunddetailsService {
	// 注入当前dao对象
    @Autowired
    private BussUserFunddetailsMapper bussUserFunddetailsMapper;

    public BussUserFunddetailsServiceImpl() {
        setMapperClass(BussUserFunddetailsMapper.class, BussUserFunddetails.class);
    }

	@Override
	public PageObject<BussUserFunddetails> PageList(Map<String, Object> map) {
		int totalData = bussUserFunddetailsMapper.getTotal(map);
        PageHelper pageHelper = new PageHelper(totalData, map);
        List<BussUserFunddetails> list = bussUserFunddetailsMapper.findListByPage(pageHelper.getMap());
        PageObject<BussUserFunddetails> pageObject = pageHelper.getPageObject();
        pageObject.setDataList(list);
		return pageObject;
	}
    
 
}
